fast calculation tricks